package com.twu.driver;

import com.twu.biblioteca.Library;
import com.twu.user.UserDatabase;

/**
 * Created by vishwasdamle on 10/08/14.
 */
public class Driver {
    BookOperations bookOperations;
    MovieOperations movieOperations;
    Library library;
    UserDatabase userDatabase;

    public Driver(Library library, UserDatabase userDatabase) {
        this.bookOperations = new BookOperations(library);
        this.movieOperations = new MovieOperations(library);
        this.library = library;
        this.userDatabase = userDatabase;
    }

    public void checkOutMovies() {
        movieOperations.checkOutMovies();
    }

    public void returnBook() {
        bookOperations.returnBook();
    }

    public void checkOutBook() {
        bookOperations.checkOutBook();
    }

    public void returnMovies() {
        movieOperations.returnMovies();
    }

    public void displayUserInfo() {
        userDatabase.displayUserInfo();
    }
}
